<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<meta name="description" content="Stranky realitni kancelare VaseRealitycz">
	<meta name="robots" content="{$robots}" n:ifset="$robots">

	<title>{block title|striptags}VašeRealitycz{/block}</title>

	<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/admin/css/screen.css" type="text/css">	
	<link rel="shortcut icon" href="{$basePath}/favicon.png" type="image/x-icon">

	<!-- JQuery -->
        <script type="text/javascript" src="{$basePath}/js/jquery-1.8.0.js"></script>
        <script type="text/javascript" src="{$basePath}/admin/js/jquery-ui-1.8.23.custom/js/jquery-ui-1.8.23.custom.min.js"></script>
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}{$basePath}/admin/js/jquery-ui-1.8.23.custom/css/custom-theme/jquery-ui-1.8.23.custom.css" type="text/css">	
                
        <!-- Menu -->
        <link rel="stylesheet" type="text/css" media="screen,projection,tv" href="{$basePath}/js/menu/menu.css" />
        <script type="text/javascript" src="{$basePath}/js/menu/menu.js"></script>
        
        <!-- Nette Forms -->
	<script type="text/javascript" src="{$basePath}/js/netteForms.js"></script>
        
        <!-- Live Form Validation -->
        <link rel="stylesheet" type="text/css" media="screen,projection,tv" href="{$basePath}/js/liveFormValidation/live-form-validation.css"type="text/css">
        <script type="text/javascript" src="{$basePath}/js/liveFormValidation/live-form-validation.js"></script>
        
        <!-- Ajax -->
        <script type="text/javascript" src="{$basePath}/js/jquery.nette.js"></script>
               
        <script type="text/javascript" n:syntax="double">
            $(function () {
                LiveForm.options = {
                    controlErrorClass: 'form-control-message',
                    errorMessageClass: 'form-error-message',
                    validMessageClass: 'form-valid-message',
                    showValid: false,
                    messageTag: 'span',
                    messageIdPostfix: '_message'
                }
                
                /* AJAX na pdkazech */
                $("a.ajax").live("click", function (event) {
                    event.preventDefault();

                    $.get(this.href);

                    $("#ajax-spinner").show().css({
                        position: "absolute",
                        left: event.pageX + 15,
                        top: event.pageY + 15
                    });
                });
                                
                $('<div id="ajax-spinner"></div>').appendTo("body").hide();                
            });
        </script>
	{block head}{/block}
</head>

<body>  
    <div id="page-wrapper">          
<!-- =========================== HEADER ==================================== -->            
        <img id="header-overlay" src="{$basePath}/images/header-overlay.png" alt="prekryti hlavicky" />
        <div id="header">
            <a id="header-logo" href="{link Homepage:default}">
                <img src="{$basePath}/images/logo.png" alt="logo spolecnosti" />
            </a>
            <div id="header-rkcr-wrapper">
                <img src="{$basePath}/images/logoRKCR.png" alt="logo Realitni komory Ceske republiky" />
                <br />
                <br />
                <div id="header-rkcr-text">Jsme členem Realitní komory České republiky</div>
            </div>
        </div>            
        <div class="clearfix"></div>       

<!-- =========================== MENU ====================================== -->
        <ul id="menu">            
            <li>
                <a href="{link UcetAdmin:default}" {ifCurrent UcetAdmin:*}class="active"{/ifCurrent}>Správa účtu</a>
                <ul>
                    <li><a href="{link UcetAdmin:default}">Osobní údaje</a></li>
                    <li><a href="{link UcetAdmin:zmenaFotky}">Změna fotky</a></li>
                    <li><a href="{link UcetAdmin:zmenaHesla}" class="submenu-last">Změna hesla</a></li>
                </ul>
            </li>
            <li>
                <a href="{link ReferenceAdmin:default}" {ifCurrent ReferenceAdmin:*}class="active"{/ifCurrent}>Reference</a>
                <ul>
                    <li><a href="{link ReferenceAdmin:default}">Seznam</a></li>
                    {var $roles = $user->getRoles()}
                    {if in_array("superadmin", $roles)}<li><a href="{link ReferenceAdmin:vse}">Vše</a></li>{/if}
                    <li><a href="{link ReferenceAdmin:pridat}" class="submenu-last">Přidat</a></li>
                </ul>
            </li>
            <li>
                <a href="{link ZrealizovanoAdmin:default}" {ifCurrent ZrealizovanoAdmin:*}class="active"{/ifCurrent}>Zrealizované</a>
                <ul>
                    <li><a href="{link ZrealizovanoAdmin:default}">Seznam</a></li>
                    <li><a href="{link ZrealizovanoAdmin:pridat}" class="submenu-last">Přidat</a></li>
                </ul>
            </li>
            <li>
                <a href="{link NovinkyAdmin:default}" {ifCurrent NovinkyAdmin:*}class="active"{/ifCurrent}>Novinky</a>
                <ul>
                    <li><a href="{link NovinkyAdmin:default}">Seznam</a></li>
                    <li><a href="{link NovinkyAdmin:pridat}" class="submenu-last">Přidat</a></li>
                </ul>
            </li>
        </ul>
                
        <div id="user-info" n:if="!isset($hideUser)">
            {var $userData = $user->getIdentity()->data}
            Přihlášen: {$userData["firstname"]} {$userData["lastname"]}
            <span id="user-info-logout">
                <a href="{link Administrace:odhlasit}">odhlásit</a>
            </span>
        </div>

<!-- =========================== CONTENT =================================== -->        
        <div id="content">
            {snippet flashMessages}<div n:foreach="$flashes as $flash" class="flash {$flash->type}">{$flash->message}</div>{/snippet}
            {include #content}                
            <div class="clearfix"></div>
        </div>

<!-- =========================== FOOTER ==================================== -->
        <div id="footer">            
            <table>
                <tr>
                <td><strong>Adresa:</strong> Hradec Králové, Ulrichovo náměstí 762/6 (<a href="http://maps.google.cz/maps?q=Ulrichovo+n%C3%A1m%C4%9Bst%C3%AD+762%2F6+500+02+Hradec+Kr%C3%A1lov%C3%A9,+%C4%8Cesk%C3%A1+republika&hl=cs&ie=UTF8&ll=50.210664,15.821039&spn=0.001485,0.004128&sll=49.192051,16.613191&sspn=0.09704,0.264187&brcurrent=5,0,0&hnear=Ulrichovo+n%C3%A1m%C4%9Bst%C3%AD+762%2F6,+500+02+Hradec+Kr%C3%A1lov%C3%A9&t=h&z=19&iwloc=A" target="_blank">mapa</a>)</td>
                <td><strong>E-mail:</strong> <a href="mailto:info@vaserealitycz.cz">info@vaserealitycz.cz</a></td>
                <td><strong>Telefon:</strong> +420 773 123 091, +420 774 803 100</td>
                </tr>
            </table>
        <span>&copy; Vaše<strong>Reality</strong>cz {? echo Date("Y")}</span>
        </div>                       
    </div> <!-- end of wrapper --> 
</body>
</html>

